import requests
from bs4 import BeautifulSoup

# url='https://www.xuexi.cn/350affb99c5e0538940ba107a0a4c65d/e43e220633a65f9b6d8b53712cba9caa.html'
url="https://youdao.com/w/adopt/"
headers = {
'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36',
}
# Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36
ses = requests.Session()
rsp = ses.get(url, headers=headers)
print(rsp.status_code)
# print(rsp.text)

with open('./temp.html', 'wb') as fd:
    for chunk in rsp.iter_content(1024):
        fd.write(chunk)
# soup = BeautifulSoup(rsp.text, 'html.parser')
# div = soup.find(id='C63d493x62hc00')
# print(div)